package com.example.demo.dao;
import com.example.demo.model.Response;
import com.example.demo.model.Test;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;


import static org.springframework.web.bind.annotation.RequestMethod.*;

@FeignClient(value="feign",url="http://localhost:8081")
public interface FeignDao {
    @PostMapping(value = "/add_test")
    public Response<String> addTest(Test test);

}
